<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link href="/public/css/index.css" rel="stylesheet" />
</head>

<body>
    <h1>测试页面</h1>
    <img src="/public/images/dog.jpg" />
</body>
<script src="/public/js/jquery.min.js"></script>
<script>
  $(function () {
    $('h1').on('click', function () {
        alert('点击了我');
    })
  })
</script>

</html>